package org.bigtree.example.common.setup;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;

import java.util.Arrays;

/**
 * @author bigTree
 * @since 2025/6/14
 */
@Slf4j
public class CommandLineRunnerExample implements CommandLineRunner {
    @Override
    public void run(String... args) {
        // 耗时逻辑请使用异步或其他方式, 否则导致应用启动耗时太久
        log.info("Hello World, CommandLineRunner Example !");
        Arrays.stream(args).forEach(System.out::println);
    }
}
